package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.dao.EslRefreshResultDao;
import io.renren.entity.EslRefreshResultEntity;
import io.renren.service.EslRefreshResultService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("eslRefreshResultService")
public class EslRefreshResultServiceImpl extends ServiceImpl<EslRefreshResultDao, EslRefreshResultEntity> implements EslRefreshResultService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<EslRefreshResultEntity> page = this.page(
                new Query<EslRefreshResultEntity>().getPage(params),
                new QueryWrapper<EslRefreshResultEntity>().orderByDesc("id")
        );

        return new PageUtils(page);
    }

}
